#ifndef __CAN1_H
#define __CAN1_H

#include "public_lib.h"

#include "stm32f10x_can.h"

#define CAN_125K  0
#define CAN_500K  1
#define CAN_1000K 2

void can1_init(unsigned char mode, unsigned char baudrate_mode);

int can1_write(CanTxMsg *msg);

int can1_read(CanRxMsg *msg);

#endif
